package cn.codergege.demo.entity

import com.fasterxml.jackson.annotation.JsonFormat
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonProperty
import java.io.Serializable
import java.util.*

data class User(
        @JsonInclude(JsonInclude.Include.NON_NULL)
        var age: Int? = null,
        @JsonIgnore
        var pwd: String? = null,
        @JsonProperty("account")
        var phone: String? = null,
        @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", locale = "zh", timezone = "GMT+8")
        var ceateTime: Date = Date()
): Serializable
